import request from '@/utils/request'

// 查询入住信息列表
export function listOccupancyInfo(query) {
  return request({
    url: '/system/occupancyInfo/list',
    method: 'get',
    params: query
  })
}

// 查询入住信息详细
export function getOccupancyInfo(id) {
  return request({
    url: '/system/occupancyInfo/' + id,
    method: 'get'
  })
}

// 新增入住信息
export function addOccupancyInfo(data) {
  return request({
    url: '/system/occupancyInfo',
    method: 'post',
    data: data
  })
}

// 修改入住信息
export function updateOccupancyInfo(data) {
  return request({
    url: '/system/occupancyInfo',
    method: 'put',
    data: data
  })
}

// 删除入住信息
export function delOccupancyInfo(id) {
  return request({
    url: '/system/occupancyInfo/' + id,
    method: 'delete'
  })
}
